package com.ihome.excel.xlsx.entity;

public enum EncapsulationEnum {

	MAP(100), ENTITY(101);

	private int code;

	public int getCode() {
		return code;
	}

	EncapsulationEnum(int code) {
		this.code = code;
	}

	public static EncapsulationEnum getEncapsulationEnumByName(String name) {
		if (String.valueOf(EncapsulationEnum.MAP).equals(name)) {
			return EncapsulationEnum.MAP;
		}
		return EncapsulationEnum.ENTITY;
	}

}
